package com.cykj.service.impl;

import com.cykj.mapper.OrderMapper;
import com.cykj.service.OrderService;
import com.cykj.util.ResponseDto;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class OrderServiceImpl implements OrderService {
    @Autowired
    private OrderMapper orderMapper;
    @Override
    public ResponseDto delete(int id) {
        orderMapper.delete(id);
        return new ResponseDto(1,"删除成功",null);
    }

    @Override
    public ResponseDto alter(int id, int userId, String name, String price) {
        orderMapper.alter(id, userId, name, price);
        return new ResponseDto(1,"修改成功",null);
    }
}
